package com.kjlink.internal.workreport.plan.lookup;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 描述:
 * 前往新增页面的一些查询条件
 *
 * @author Vic.xu
 * @since 2024-10-11 11:25
 */
public class ToAddLookup {
    /**
     * 用户id
     */
    private Integer userId;


    /**
     * 周开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date weekStart;

    /**
     * 周结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date weekEnd;

    /**
     * 是否带入上周的未完成计划
     */
    private Boolean bringIn;

    public ToAddLookup() {


    }

    public ToAddLookup(Integer userId, Date weekStart, Date weekEnd) {
        this.userId = userId;
        this.weekStart = weekStart;
        this.weekEnd = weekEnd;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getWeekStart() {
        return weekStart;
    }

    public void setWeekStart(Date weekStart) {
        this.weekStart = weekStart;
    }

    public Date getWeekEnd() {
        return weekEnd;
    }

    public void setWeekEnd(Date weekEnd) {
        this.weekEnd = weekEnd;
    }

    public Boolean getBringIn() {
        return bringIn;
    }

    public void setBringIn(Boolean bringIn) {
        this.bringIn = bringIn;
    }
}
